package com.corundumstudio.socketio.namespace;

import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedDeque;

/**
 * Created by alex on 15-8-17.
 */
public class EventEntry<T> {

    private final Queue<DataListener<T>> listeners = new ConcurrentLinkedDeque<DataListener<T>>();

    public EventEntry() {
        super();
    }

    public void addListener(DataListener<T> listener) {
        listeners.add(listener);
    }

    public Queue<DataListener<T>> getListeners() {
        return listeners;
    }
}
